import time

from selenium import webdriver


url = "https://cpquery.cponline.cnipa.gov.cn/detail/index"
options = webdriver.ChromeOptions()
# 去除“Chrome正受到自动测试软件的控制”的显示
options.add_experimental_option("useAutomationExtension", False)
options.add_experimental_option("excludeSwitches", ["enable-automation"])
driver = webdriver.Chrome(chrome_options=options,
                           executable_path=r'D:\Users\xhhg\AppData\Local\Programs\Python\Python37\chromedriver.exe')
driver.get(url)
time.sleep(5)
driver.find_element_by_xpath('//div[@class="el-radio-group title-group"]/label[3]').click()
driver.find_element_by_xpath('//input[@type="text"]').clear()
driver.find_element_by_xpath('//input[@type="text"]').send_keys('42264')
time.sleep(2)
driver.find_element_by_xpath('//input[@type="password"]').clear()
driver.find_element_by_xpath('//input[@type="password"]').send_keys('Xhhg2019@')
time.sleep(20)

